package com.education.platform.api.service.impl;

import com.education.platform.dao.entity.GoodsDO;
import com.education.platform.dao.model.GoodsModel;
import org.springframework.beans.factory.annotation.Autowired;
import com.education.platform.common.service.impl.BaseServiceImpl;
import com.education.platform.dao.GoodsDao;
import org.springframework.stereotype.Service;
import com.education.platform.api.service.GoodsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
* describe: 商品
* @author : tomato
* @date: 2020-06-06 02:55:52.795
**/
@Service
public class GoodsServiceImpl extends BaseServiceImpl<GoodsDao, GoodsDO> implements GoodsService {

	private static final Logger LOGGER = LoggerFactory.getLogger(GoodsServiceImpl.class);

    @Autowired
	private GoodsDao goodsDao;

    /**
     * 商品列表
     * @param query
     * @return
     */
    @Override
    public List<GoodsDO> getSortList(GoodsModel query) {
        return goodsDao.getSortList(query);
    }
}
